package com.liush.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liush.model.controller.SysRole;
import com.liush.model.vo.AssginRoleVo;
import com.liush.model.vo.SysRoleQueryVo;

import java.util.Map;

/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author liush
 * @since 2023-02-25
 */
public interface SysRoleService extends IService<SysRole> {

    //自定义：分页查询方法
    Page<SysRole> findPage(Page page, SysRoleQueryVo sysRoleQueryVo);

    Map getRolesByUserId(Long userId);

    void doAssignRole(AssginRoleVo assginRoleVo);
}
